package org.example.carsystem.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.example.carsystem.domain.SysLoginInfor;
import org.example.carsystem.mapper.SysLoginInforMapper;
import org.example.carsystem.service.SysLoginInforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLoginInforServiceImpl implements SysLoginInforService {
    @Autowired
    SysLoginInforMapper sysLoginInforMapper;
    @Override
    public PageInfo<SysLoginInfor> selectAll(Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<SysLoginInfor> sysLoginInfors = sysLoginInforMapper.selectAll();
        return new PageInfo<>(sysLoginInfors);
    }
}
